<?php
declare (strict_types = 1);

namespace leruge\command;;

use think\console\command\Make;

class MakeEntity extends Make
{
    protected $type = "Entity";

    protected function configure()
    {
        parent::configure();
        $this->setName('entity')
            ->setDescription('创建一个服务层');
    }

    protected function getStub(): string
    {
        return __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'stub' . DIRECTORY_SEPARATOR . 'entity.stub';
    }

    protected function getNamespace(string $app): string
    {
        return parent::getNamespace($app) . '\\entity';
    }
}
